home *** CD-ROM | disk | FTP | other *** search
-
- #ifdef _INITIALIZE_GLOBALS_
- #define EXTERN
- #else
- #define EXTERN extern
- #endif
-
- #define ARGTEXT "This function requires %d argument(s) from the .INF file.\n"
- #define ERRTEXT "The call to %s returned error %d for the service named \"%s\".\n"
- #define OUTOFMEMORY "Memory allocation failed (tried to get %d bytes)."
- #define WCBUFSIZE 128
- #define NAMEBUFSIZE 128
- #define RESULTBUFSIZE 4096
- #define DEPENDBUFSIZE 256
- #define SMALLBUFSIZE 16
- #define NUMCREATEARGS 7
- #define NUMDELETEARGS 1
- #define NUMSTOPARGS 1
- #define NUMQUERYARGS 1
- #define NUMSHAREARGS 3
- #define NUMSHDELETEARGS 1
- #define NUMADJUSTARGS 0
- #define NUMADMINARGS 0
- #define NUMDEBUGARGS 1
- #define NUMNOSARGS 0
- #define NUMDOMAINARGS 0
- #define NUMDIRCHECKARGS 1
- #define NUMGETSNAMEARGS 1
- #define NUMSHUTDOWNARGS 0
-
- #define PERFNAME "Software\\Microsoft\\Windows NT\\CurrentVersion\\Perflib"
- #define DRIVERNAME "System\\CurrentControlSet\\Services"
- #define DUMPSCRNAME "snadump.scr"
- #define DUMPSCRTEMP "snadump.tmp"
-
- #define LMDLL "NETAPI32.DLL"
- #define NWDLL "WSOCK32.DLL"
- #define ATDLL "WSOCK32.DLL"
- #define IPDLL "WSOCK32.DLL"
- #define BVDLL "VNSAPI32.DLL"
- #define NBDLL "WSOCK32.DLL"
- #define LMFUNC "NetWkstaGetInfo"
- #define NWFUNC "WSAStartup"
- #define ATFUNC "WSAStartup"
- #define IPFUNC "WSAStartup"
- #define NBFUNC "WSAStartup"
-
- #define NETUSEFUNC "NetUseGetInfo"
- #define LMFUNC2 "NetWkstaGetInfo"
-
- //
- // Function prototypes
- //
- BOOL SNAGetNosTypesInstalled( DWORD, LPSTR*, LPSTR* );
-
- //
- // Global variables
- //
- EXTERN SC_HANDLE hSCManager;
- EXTERN SC_HANDLE hService;
- EXTERN SC_LOCK lSCLock;
- EXTERN BOOL fStatus;
- EXTERN WCHAR wcNetName [ WCBUFSIZE ];
- EXTERN WCHAR wcPathName[ WCBUFSIZE ];
- EXTERN WCHAR wcRemark [ WCBUFSIZE ];
- EXTERN CHAR ResultBuf [ RESULTBUFSIZE ];
-